/*
 * @Description:
 * @Version: 2.0
 * @Autor: wsh
 * @Date: 2023-06-20 10:14:50
 * @LastEditors: wsh
 * @LastEditTime: 2024-03-07 14:13:02
 */
// 列表
const tableConfig = {
  stripe: true,
  border: true,
  maxHeight: '80vh',
  columns: [
    { label: '机构名称', prop: 'organizationName' },
    { label: '姓名', prop: 'name' },
    { label: '类型', prop: 'personTypeLabel' },
    { label: '身份证号', prop: 'idCard' },
    { label: '核验时间', prop: 'verifyingTime' },
    { label: '核验人', prop: 'verifyingUserName' },
    {
      label: '核验状态', prop: 'verifyingStatus',
      custome: 'tag',
      dicData: [
        { label: '未核验', value: 0, type: 'warning' },
        { label: '待复验', value: 1, type: 'info' },
        { label: '核验成功', value: 2, type: 'success', },
        { label: '核验失败', value: 3, type: 'danger' },
      ]
    },
    {
      label: '操作',
      prop: 'menu',
      width: 100,
      fixed: 'right',
    },
  ],
}

export const baseConfig = {
  pageName: '指静脉核验记录',
  // 数据字典
  dictcodes: [],//逗号分隔字符串
  rowKey: 'id',//唯一标识
  addLabel: '新增',
  // 删除插入
  // tipLabel: '',//展示名称字段
  // exportMqTopic: '',//导出标识
  api: {
    index: 'view_iccVenaDigitalis_page',
    // export: '',
    // delete: '',
    // add: '',
    // edit: '',
  },
  auth: {
    index: 'view_iccVenaDigitalis_page',
    // export: '',
    // delete: '',
    // add: '',
    // edit: '',
    // 批量搜索
    // mulitSet: 'mulitSet',
  },
  paramsObj: {},//默认传参
  // 当前行操作按钮
  menuBtn: [
    {
      icon: 'detail',
      label: '详情',
      type: 'primary',
      operate: 'Detial',
      auth: '',
      text: true,
      show: true,
    },
  ],
  dialogConfig: {
    width: '55%',
  },
  // 搜索
  searchConfig: {
    inline: true,
    showBtn: true,
    labelPosition: 'left',
    column: [
      {
        label: '机构名称',
        prop: 'organizationName',
        type: 'input',
        span: 8,
      },
      {
        label: '服务对象姓名',
        prop: 'oldmanName',
        type: 'input',
        span: 8,
      },
      {
        label: '身份证号',
        prop: 'idCard',
        type: 'input',
        span: 8,
      },
      {
        label: '核验人',
        prop: 'verifyingUserName',
        type: 'input',
        span: 8,
      },
      {
        label: '核验状态',
        prop: 'verifyingStatus',
        type: 'select',
        dicData: [
          { label: '未核验', value: 0 },
          { label: '待复验', value: 1 },
          { label: '核验成功', value: 2 },
          { label: '核验失败', value: 3 },
        ],
        span: 8,
      },
    ],
  },
  tableConfig,
}
